import com.LCQ.crm.exception.LoginException;
import com.LCQ.crm.settings.domain.User;

public class test02 {
    public static void main(String[] args) {
        User user=null;
        try{
            user = login(1);
        }catch (Exception e){
            e.printStackTrace();
            System.out.println(user);
        }
    }

    public static User login(int i) throws LoginException {
        User user = new User();
        if(i==1){
            throw new LoginException("haha");
        }
        return user;
    }
}
